<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xml:lang="zh-CN" xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>API文档</title>
    <link rel="stylesheet" href="/Public/Api/css/channel.css" type="text/css" media="screen">
</head>

<body>
<div id="OSC_Banner">
    <div class="wp998">
        <h1>API 文档</h1>
        <div class="clear"></div>
    </div>
</div>
<div id="OSC_Screen">
    <div id="OSC_Content" class="CenterDiv">
        <include file="Doc/public/menu" />
        <div class="context">
            <h2 class="url">使用说明 </h2>
            <hr>
            <div class="title">如何使用</div>
            <div class="desc">1. 访问地址：{$apiUrl}</div>
            <div class="desc">2. 接口调用格式：module/action/param/value/.../param/value</div>
            <div class="return">
                <table style="border-collapse:collapse;border: 1px solid #dee7e6;" cellspacing="0" bordercolor="#dee7e6" border="1">
                    <tbody>
                    <tr>
                        <th width="100px">标识</th>
                        <th width="400px">说明</th>
                    </tr>
                    <tr>
                        <td>module</td>
                        <td>表示具体的功能模块</td>
                    </tr>
                    <tr>
                        <td>action</td>
                        <td>表示具体的功能实现</td>
                    </tr>
                    <tr>
                        <td>param</td>
                        <td>表示传递的参数名称</td>
                    </tr>
                    <tr>
                        <td>value</td>
                        <td>表示传递的参数值</td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <div class="desc">3. 调用接口示例，如：{$apiUrl}/Api/Task/lists/status/1/page/1/nums/2，具体说明请查阅相应的接口文档</div>
            <div class="title">返回结果</div>
            <div class="return">
                <div class="returnType">JSON数据结构</div>
                <div class="title">返回字段说明</div>
                <div class="return">
                    <table style="border-collapse:collapse;border: 1px solid #dee7e6;" cellspacing="0" bordercolor="#dee7e6" border="1">
                        <tbody>
                        <tr>
                            <th width="91px">返回值字段</th>
                            <th width="700px">说明</th>
                        </tr>
                        <tr>
                            <td>errno</td>
                            <td>错误标识，0表示正确 非0表示有错误发生，查看所有<a href="{:U('doc/errlist')}"> 错误代码</a></td>
                        </tr>
                        <tr>
                            <td>errmsg</td>
                            <td>具体的错误提示</td>
                        </tr>
                        <tr>
                            <td>data</td>
                            <td>具体的数据信息，里面包含：<br />
                                1. list 记录集<br />
                                2. total 记录数量
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
        <div class="clear"></div>
    </div>
</div>
</body>
</html>